package com.ss.cfg;

import java.util.Stack;
/**
 * stack of node
 * @author WangJie
 */
public class ControlStack {

	Stack<Node> nodes = new Stack<Node>();
	
	public Node top(){
		return this.nodes.firstElement();
	}
	
	public void pop(){
		this.nodes.pop();
	}
	
	public void push(Node node){
		this.nodes.push(node);
	}
	
	public boolean isEmpty(){
		return this.nodes.isEmpty();
	}
}
